﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NBusiness.CodeDom.Compiler;

namespace NBusiness.VisualStudio.Commands
{
    class RefreshScannerCommand : CommandBase
    {
        EntityElement[] _codeElements;
        EntityParser _parser;

        public RefreshScannerCommand(EntityElement[] codeElements, EntityParser parser)
        {
            _codeElements = codeElements;
            _parser = parser;
        }

        protected override void Execute()
        {
            _parser.BuildRootFromElements(_codeElements);
        }
    }
}
